//
//  SettingLogOutCell.m
//  DriverClient
//
//  Created by 吕晶 on 2020/8/3.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import "SettingLogOutCell.h"

@interface SettingLogOutCell ()

@property (nonatomic, strong) UIButton *btn;

@end

@implementation SettingLogOutCell

+ (instancetype)SettingLogOutCellWithTableView:(UITableView *)tableView {
    static NSString *cellID = @"SettingLogOutCell";
    SettingLogOutCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[SettingLogOutCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
    }
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = Color_backgroundColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        self.btn = [[UIButton alloc] initWithFrame:CGRectMake(15, 0, ScreenW - 30, 60)];
        self.btn.backgroundColor = HexColor(0xffffff);
        self.btn.layer.cornerRadius = 6;
        [self.btn setTitle:@"退出登录" forState:0];
        [self.btn setTitleColor:HexColor(0xF35959) forState:0];
        self.btn.titleLabel.font = [UIFont systemFontOfSize:16];
        self.btn.userInteractionEnabled = NO;
        [self.contentView addSubview:self.btn];
        
        self.height = self.btn.nim_bottom;
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
